
    let x=1;
    let flog=true;
    let redArea = [
        118.768889,32.072568,13.6,
        118.769164,32.072373,13.6,
        118.769065,32.072269,13.6,
        118.769146,32.072208,13.6,
        118.769070,32.072132,13.6,
        118.768813,32.072308,13.6,
        118.768797,32.072396,13.6,
    ]
    let greenArea = [
        118.769311,32.072826,13.6,
        118.769336,32.072810,13.6,
        118.769353,32.072827,13.6,
        118.769318,32.072853,13.6,
        118.769304,32.072860,13.6,
        118.769234,32.072881,13.6,
        118.769171,32.072876,13.6,
        118.769119,32.072859,13.6,
        118.769075,32.072828,13.6,
        118.769111,32.072855,13.6,
        118.769075,32.072827,13.6,
        118.769050,32.072798,13.6,
        118.769030,32.072756,13.6,
        118.769010,32.072723,13.6,
        118.768996,32.072691,13.6,
        118.768976,32.072654,13.6,
        118.769031,32.072615,13.6,
        118.769069,32.072589,13.6,
        118.769100,32.072621,13.6,
        118.769157,32.072679,13.6,
        118.769213,32.072735,13.6,
        118.769246,32.072716,13.6
    ]
    let deviceData = [
        {
            height: 14.36093912,
            lat: 32.07268059,
            lon: 118.7692729,
            matrix: [
                -0.5963421307635803,
                -0.03218692933983412,
                -0.42486532771368923,
                0,
                -0.2792159158643424,
                -0.5225158249940123,
                0.43149295127046805,
                0,
                -0.32184626367510333,
                0.5129441453489206,
                0.4128846913459944,
                0,
                -2603645.971291479,
                4742036.542986073,
                3367271.0580937527,
                1.000000000000001
            ],
            出厂日期: "2020-07-08 00:00:00",
            序号: "1",
            当前记录值: "正常",
            当前运行状态: "正常",
            投用日期: "2020-08-15 00:00:00",
            楼层: "3F",
            生产商: "杭州海康威视数字技术股份有限公司",
            联系人: "李强",
            联系方式: "2147483647",
            设备名称: "1号摄像机",
            设备品牌: "海康",
            设备型号: "HIK\DS-0011XYZ-ABC",
            设备子类型: "摄像头-球机",
            设备类型: "视频",
            设备编号: "NJ_F03_SP_001"
        },
        {
            height: 13.90135376,
            lat: 32.07266806,
            lon: 118.76909097,
            matrix: [
                -0.8765664422758175,
						-0.48128086630980393,
						-6.322877662277303E-16,
						0,
						0.255557463344988,
						-0.46545190578415935,
						0.8473753042958995,
						0,
						-0.40782552054106463,
						0.7427807557590457,
						0.5309944384543315,
						0,
						-2603630.9990353053,
						4742045.075098223,
						3367269.6774964817,
						0.9999999999999996
            ],
            出厂日期: "2020-07-08 00:00:00",
            序号: "2",
            当前记录值: "正常",
            当前运行状态: "正常",
            投用日期: "2020-08-15 00:00:00",
            楼层: "3F",
            生产商: "杭州海康威视数字技术股份有限公司",
            联系人: "李强",
            联系方式: "2147483647",
            设备名称: "2号摄像机",
            设备品牌: "海康",
            设备型号: "HIK\DS-0011XYZ-ABC",
            设备子类型: "摄像头-球机",
            设备类型: "视频",
            设备编号: "NJ_F03_SP_002",
        },
        {
            height: 13.7402771,
            lat: 32.07238949,
            lon: 118.76920568,
            matrix: [
                -0.8345843966948723,
						-0.1261825164503994,
						-0.5141020713284659,
						0,
						-0.3820822024047903,
						-0.520723932819689,
						0.7480734314242267,
						0,
						-0.3663825293425958,
						0.8304689282204099,
						0.39094665091477737,
						0,
						-2603648.459768195,
						4742054.083491448,
						3367243.417410489,
						1.0000000000000002
            ],
            出厂日期: "2020-07-08 00:00:00",
            序号: "3",
            当前记录值: "正常",
            当前运行状态: "正常",
            投用日期: "2020-08-15 00:00:00",
            楼层: "3F",
            生产商: "杭州海康威视数字技术股份有限公司",
            联系人: "李强",
            联系方式: "2147483647",
            设备名称: "3号摄像机",
            设备品牌: "海康",
            设备型号: "HIK\DS-0021XYZ-ABC",
            设备子类型: "摄像头-半球机",
            设备类型: "视频",
            设备编号: "NJ_F03_SP_003",
        },
        {
            height: 13.49223475,
            lat: 32.07240411,
            lon: 118.769445,
            matrix: [
                0.33342111127984203,
                -0.42023668978614626,
                0.8439380825099069,
                0,
                0.8500023600842391,
                0.5212277983477461,
                -0.07627299706177448,
                0,
                -0.4078312768831484,
                0.7427803893393689,
                0.5309905298672633,
                0,
                -2603667.5728784828,
                4742042.416204515,
                3367244.6638973565,
                1
            ],
            出厂日期: "2020-07-08 00:00:00",
            序号: "4",
            当前记录值: "正常",
            当前运行状态: "正常",
            投用日期: "2020-08-15 00:00:00",
            楼层: "3F",
            生产商: "杭州海康威视数字技术股份有限公司",
            联系人: "李强",
            联系方式: "2147483647",
            设备名称: "4号摄像机",
            设备品牌: "海康",
            设备型号: "HIK\DS-0021XYZ-ABC",
            设备子类型: "摄像头-半球机",
            设备类型: "视频",
            设备编号: "NJ_F03_SP_004",
        },
        {
            height: 13.58844979,
            lat: 32.07219602,
            lon: 118.76915151,
            matrix: [
                0.7306829077679653,
						0.04498261750433253,
						0.4982808343967526,
						0,
						0.3462299151008927,
						0.5911965218204952,
						-0.5610848919597565,
						0,
						-0.3611538061462088,
						0.6577750179344923,
						0.47021770659588974,
						0,
						-2603649.212025874,
						4742066.605295454,
						3367225.0754231038,
						1
            ],
            出厂日期: "2020-07-08 00:00:00",
            序号: "5",
            当前记录值: "正常",
            当前运行状态: "正常",
            投用日期: "2020-08-15 00:00:00",
            楼层: "3F",
            生产商: "杭州海康威视数字技术股份有限公司",
            联系人: "李强",
            联系方式: "2147483647",
            设备名称: "5号摄像机",
            设备品牌: "海康",
            设备型号: "HIK\DS-0021XYZ-ABC",
            设备子类型: "摄像头-半球机",
            设备类型: "视频",
            设备编号: "NJ_F03_SP_005"
        },
        {
            height: 12.06976533,
            lat: 32.07276577,
            lon: 118.76921958,
            matrix: [
                -0.8227120843364844,
						-0.08077722005662781,
						-0.5718098888249541,
						0,
						-0.3819853778218274,
						-0.670318158594081,
						0.6442883045195854,
						0,
						-0.4331035434724581,
						0.7446444043503779,
						0.5179504934379704,
						0,
						-2603638.222703091,
						4742032.947189913,
						3367277.854961829,
						1
            ],
            出厂日期: "2020-07-14 00:00:00",
            序号: "6",
            当前记录值: "2698",
            当前运行状态: "正常",
            投用日期: "2020-08-16 00:00:00",
            楼层: "3F",
            生产商: "北京顺水水表厂",
            联系人: "张华",
            联系方式: "2147483647",
            设备名称: "1号智能水表",
            设备品牌: "顺水",
            设备型号: "DN15",
            设备子类型: "物联网水表",
            设备类型: "智能水表",
            设备编号: "NJ_F03_WB_001",
        },
        {
            height: 12.06979841,
            lat: 32.07236006,
            lon: 118.76890672,
            matrix: [
                -0.8256075957055935,
                -0.05163249881381878,
                -0.5618773736140913,
                0,
                -0.38993751414795985,
                -0.6675366326523448,
                0.6343055881255323,
                0,
                -0.40782451247238427,
                0.7427845778780069,
                0.5309898660928025,
                0,
                -2603623.81823313,
                4742068.11894132,
                3367239.7183782323,
                0.9999999999999998
            ],
            出厂日期: "2020-07-14 00:00:00",
            序号: "7",
            当前记录值: "2700",
            当前运行状态: "正常",
            投用日期: "2020-08-16 00:00:00",
            楼层: "3F",
            生产商: "北京顺水水表厂",
            联系人: "张华",
            联系方式: "2147483647",
            设备名称: "2号智能水表",
            设备品牌: "顺水",
            设备型号: "DN15",
            设备子类型: "物联网水表",
            设备类型: "智能水表",
            设备编号: "NJ_F03_WB_002",  
        },
        {
            height: 12.06952714,
            lat: 32.07222016,
            lon: 118.76903948,
            matrix: [
                -0.36734713109385647,
                -0.6658856392324558,
                0.6493476732391485,
                0,
                0.835902712281204,
                0.06976457369287875,
                0.5444258993273347,
                0,
                -0.40782685159027926,
                0.7427847734851828,
                0.5309877959054484,
                0,
                -2603638.732245796,
                4742069.332850729,
                3367226.5655765827,
                1.0000000000000004
            ],
            出厂日期: "2020-06-30 00:00:00",
            序号: "8",
            当前记录值: "399",
            当前运行状态: "正常",
            投用日期: "2020-08-20 00:00:00",
            楼层: "3F",
            生产商: "浙江华仪电子股份有限公司",
            联系人: "王乐生",
            联系方式: "0577-62558713",
            设备名称: "1号智能电表",
            设备品牌: "华仪",
            设备型号: "DTZY3C-J",
            设备子类型: "0.5S级三相智能电能表",
            设备类型: "智能电表",
            设备编号: "NJ_F03_DB_001",
        },
        {
            height: 12.0698343,
            lat: 32.07267218,
            lon: 118.76907259,
            matrix: [
                -0.844887540474925,
                -0.08650267744495106,
                -0.5279037135170465,
                0,
                -0.3461843307306317,
                -0.6639230970340176,
                0.6628442730999071,
                0,
                -0.40782527276619057,
                0.7427808613713831,
                0.5309944810198779,
                0,
                -2603628.714870598,
                4742044.470044297,
                3367269.039001738,
                1.0000000000000007
            ],
            出厂日期: "2020-06-30 00:00:00",
            序号: "9",
            当前记录值: "401",
            当前运行状态: "正常",
            投用日期: "2020-08-20 00:00:00",
            楼层: "3F",
            生产商: "浙江华仪电子股份有限公司",
            联系人: "王乐生",
            联系方式: "0577-62558713",
            设备名称: "2号智能电表",
            设备品牌: "华仪",
            设备型号: "DTZY3C-J",
            设备子类型: "0.5S级三相智能电能表",
            设备类型: "智能电表",
            设备编号: "NJ_F03_DB_002",
        },
        {
            height: 13.65291356,
            lat: 32.07274713,
            lon: 118.76933283,
            matrix: [
                -0.8765644105036751,
                -0.4812845667984219,
                1.258367642173027E-16,
                0,
                0.25555998644998673,
                -0.4654518435133714,
                0.847374577560412,
                0,
                -0.4078283064771586,
                0.7427783970550431,
                0.5309955981967396,
                0,
                -2603648.374845529,
                4742029.269787934,
                3367276.5015504896,
                1
            ],
            出厂日期: "2020-07-14 00:00:00",
            序号: "10",
            当前记录值: "正常",
            当前运行状态: "正常",
            投用日期: "2020-07-30 00:00:00",
            楼层: "3F",
            生产商: "浙江大华技术股份有限公司",
            联系人: "胡先行",
            联系方式: "0571-28933188",
            设备名称: "1号烟雾感应器",
            设备品牌: "大华",
            设备型号: "DH-HY-SA-K923-EN",
            设备子类型: "吸气式烟雾探测器",
            设备类型: "烟雾感应",
            设备编号: "NJ_F03_YW_001",
        },
        {
            height: 13.471377,
            lat: 32.07232688,
            lon: 118.76898203,
            matrix: [
                -0.8765673606513227,
                -0.48127919365039423,
                1.9902658430695837E-17,
                0,
                0.2555541409408097,
                -0.46544795990230353,
                0.8473784736885805,
                0,
                -0.4078256285335419,
                0.7427843121539454,
                0.5309893806181172,
                0,
                -2603631.1512633148,
                4742066.801313464,
                3367236.9087562994,
                1
            ],
            出厂日期: "2020-07-14 00:00:00",
            序号: "11",
            当前记录值: "报警",
            当前运行状态: "报警",
            投用日期: "2020-07-30 00:00:00",
            楼层: "3F",
            生产商: "浙江大华技术股份有限公司",
            联系人: "胡先行",
            联系方式: "0571-28933188",
            设备名称: "2号烟雾感应器",
            设备品牌: "大华",
            设备型号: "DH-HY-SA-K923-EN",
            设备子类型: "吸气式烟雾探测器",
            设备类型: "烟雾感应",
            设备编号: "NJ_F03_YW_002",
        },
        {
            height: 13.48942962,
            lat: 32.07276692,
            lon: 118.76929568,
            matrix: [
                -0.8765647248500557,
                -0.48128399427837626,
                1.344922226250235E-16,
                0,
                0.2555598193001336,
                -0.4654522596859525,
                0.8473743993728662,
                0,
                -0.4078277355794124,
                0.7427785072312563,
                0.5309958825522813,
                0,
                -2603644.258794794,
                4742029.114722267,
                3367277.695195226,
                1.0000000000000004
            ],
            出厂日期: "2020-07-16 00:00:00",
            序号: "12",
            当前记录值: "正常",
            当前运行状态: "正常",
            投用日期: "2020-08-01 00:00:00",
            楼层: "3F",
            生产商: "苏州德安消防工程有限公司",
            联系人: "廖朝建",
            联系方式: "2147483647",
            设备名称: "1号喷淋",
            设备品牌: "德安",
            设备型号: "SMTBD-63-120",
            设备子类型: "边墙型喷淋",
            设备类型: "喷淋",
            设备编号: "NJ_F03_PL_001",
        },
        {
            height: 13.30593274,
            lat: 32.07276282,
            lon: 118.76936787,
            matrix: [
                -0.8186038996721832,
                -0.44946154687376116,
                -2.1162208399466518E-16,
                0,
                0.2386622037655452,
                -0.4346752510103062,
                0.7913443026455421,
                0,
                -0.38086222523627544,
                0.6936640186124933,
                0.4958852905129365,
                0,
                -2603650.3517613043,
                4742025.977882566,
                3367277.2791175446,
                1
            ],
            出厂日期: "2020-07-16 00:00:00",
            序号: "13",
            当前记录值: "正常",
            当前运行状态: "正常",
            投用日期: "2020-08-01 00:00:00",
            楼层: "3F",
            生产商: "苏州德安消防工程有限公司",
            联系人: "廖朝建",
            联系方式: "2147483647",
            设备名称: "2号喷淋",
            设备品牌: "德安",
            设备型号: "SMTBD-63-120",
            设备子类型: "边墙型喷淋",
            设备类型: "喷淋",
            设备编号: "NJ_F03_PL_002",
        },
        {
            height: 12.10694178,
            lat: 32.07268019,
            lon: 118.76932098,
            matrix: [
                -0.861604048073644,
                -0.0734361761152897,
                -0.508937832007829,
                0,
                -0.3023676527646131,
                -0.7309018295454188,
                0.6173560096062344,
                0,
                -0.4159139230332201,
                0.6834923321244202,
                0.6054964616101345,
                0,
                -2603649.051698593,
                4742032.767385751,
                3367269.7876345306,
                0.9999999999999998
            ],
            出厂日期: "2020-08-01 00:00:00",
            序号: "14",
            当前记录值: "正常",
            当前运行状态: "正常",
            投用日期: "2020-08-10 00:00:00",
            楼层: "3F",
            生产商: "杭州必达智能设备有限公司",
            联系人: "何朝阳",
            联系方式: "86522306",
            设备名称: "1号门禁",
            设备品牌: "必达",
            设备型号: "必达i8",
            设备子类型: "指纹门禁系统",
            设备类型: "门禁",
            设备编号: "NJ_F03_MJ_001",
        },
        {
            height: 12.2147159,
            lat: 32.07225961,
            lon: 118.76955394,
            matrix: [
                0.33442715169303927,
                0.6626577874553834,
                -0.670106810094641,
                0,
                -0.8496060472412587,
                -0.09571497775666586,
                -0.5186600114951264,
                0,
                -0.40783335408174337,
                0.7427807884953519,
                0.5309883760880814,
                0,
                -2603680.2918131226,
                4742043.976236061,
                3367230.3042935478,
                1
            ],
            出厂日期: "2020-08-01 00:00:00",
            序号: "15",
            当前记录值: "正常",
            当前运行状态: "正常",
            投用日期: "2020-08-10 00:00:00",
            楼层: "3F",
            生产商: "杭州必达智能设备有限公司",
            联系人: "何朝阳",
            联系方式: "86522306",
            设备名称: "2号门禁",
            设备品牌: "必达",
            设备型号: "必达i8",
            设备子类型: "指纹门禁系统",
            设备类型: "门禁",
            设备编号: "NJ_F03_MJ_002",
        },
        {
            height: 14.06,
            lat: 32.07265501,
            lon: 118.76932579,
            matrix: [
                -0.49884098527624465,
                -0.056245510590360315,
                -0.30445460990585893,
                0,
                -0.19627651220202927,
                -0.38904698592648396,
                0.39346724011688505,
                0,
                -0.23944038446407886,
                0.436093316648881,
                0.31175217241864817,
                0,
                -2603650.975041781,
                4742035.4249263555,
                3367268.4878239715,
                1
            ],
            出厂日期: "2020-08-07 00:00:00",
            序号: "16",
            当前记录值: "正在广播歌曲《让我们荡起双桨》",
            当前运行状态: "正常",
            投用日期: "2020-08-10 00:00:00",
            楼层: "3F",
            生产商: "广州苏里电子科技有限公司",
            联系人: "张先生",
            联系方式: "020-62690638",
            设备名称: "1号广播音响",
            设备品牌: "苏里",
            设备型号: "CW-6806B ",
            设备子类型: "公共广播系统",
            设备类型: "广播音响",
            设备编号: "NJ_F03_GB_001",
        },
        {
            height: 13.56914798,
            lat: 32.07241615,
            lon: 118.76941512,
            matrix: [
                -0.7062729921896876,
                -0.6252034039892709,
                0.3321131797198847,
                0,
                0.5786643847636337,
                -0.23957838512435015,
                0.7795830470112417,
                0,
                -0.4078308354079536,
                0.7427805200874852,
                0.5309906860473295,
                0,
                -2603664.830010187,
                4742043.388244276,
                3367245.7519964143,
                0.9999999999999999
            ],
            出厂日期: "2020-07-08 00:00:00",
            序号: "17",
            当前记录值: "27",
            当前运行状态: "正常",
            投用日期: "2020-08-15 00:00:00",
            楼层: "3F",
            生产商: "杭州米科传感技术有限公司",
            联系人: "李飞翔",
            联系方式: "2147483647",
            设备名称: "1号温度感应器",
            设备品牌: "米科",
            设备型号: "MIK-THT",
            设备子类型: "NTC热敏电阻",
            设备类型: "温度感应",
            设备编号: "NJ_F03_WD_001",
        },
        {   
            height: 12.00934198,
            lat: 32.07228188,
            lon: 118.76905606,
            matrix: [
                -0.8612226454325757,
                -0.11977621665992247,
                -0.49391215101144403,
                0,
                -0.3032702997160446,
                -0.6587301098418723,
                0.6885504830423516,
                0,
                -0.40782677732617856,
                0.7427841545902487,
                0.5309887186987997,
                0,
                -2603638.2666226076,
                4742065.397008822,
                3367232.428937662,
                1.0000000000000007
            ],
            出厂日期: "2020-07-08 00:00:00",
            序号: "18",
            当前记录值: "62",
            当前运行状态: "报警",
            投用日期: "2020-08-15 00:00:00",
            楼层: "3F",
            生产商: "杭州米科传感技术有限公司",
            联系人: "李飞翔",
            联系方式: "2147483647",
            设备名称: "2号温度感应器",
            设备品牌: "米科",
            设备型号: "MIK-THT",
            设备子类型: "NTC热敏电阻",
            设备类型: "温度感应",
            设备编号: "NJ_F03_WD_002",
        }



    ]
